package city.spring.modules.oldman.repository;

import city.spring.modules.oldman.entity.GooutRegisterEntity;
import city.spring.modules.oldman.vo.GooutRegisterVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 存储库：外出登记
 *
 * @author 侯坤林
 * @date 2020-06-17 21:45:59
 */
@Repository
public interface GooutRegisterRepository extends BaseMapper<GooutRegisterEntity> {
    /**
     * 分页获取老人外出记录
     *
     * @param page    分页对象
     * @param wrapper 查询对象
     * @return 老人的外出记录
     */
    IPage<GooutRegisterVO> listPage(Page<? extends GooutRegisterEntity> page, @Param(Constants.WRAPPER) Wrapper<? extends GooutRegisterEntity> wrapper);
}